<?php
return [
    "db"=>[   //配置数据库
              'type'=>'mysql',
              'dsn'=>"mysql:dbname=mapp_test;host=rm-2zewh4873pjym5f267o.mysql.rds.aliyuncs.com;charset=utf8",
//              'dsn'=>"mysql:dbname=mappadmin;host=127.0.0.1;charset=utf8",
              'username'=>"chexun_2018",
//              'username'=>"root",
              'password'=>"Chexun2018",
//              'password'=>"",
              'pool'=>['min'=>1,
                       'max'=>10,
                       'check'=>30,
                       'idle'=>30
              ],
    ],
    'storage'=>[    //配置文件存储
                    'type'=>'local',//本地为 local
                    'accessKeyId' => "",
                    'accessKeySecret' => "",
                    'endpoint' => "http://oss-cn-shanghai.aliyuncs.com",
                    'bucket'=>'',
                    'cname'=>'http://cdn.oss.magapp.cc/',
                    'webp'=>false,
                    'watermark'=>''
    ],
    'cache'=>[ //配置缓存
               'type'=>'redis',//文件缓存为file
               'host'       => '127.0.0.1',
               'port'       => 6379,
               'password'   => '123456',
               'select'     => 0,
               'timeout'    => 0,
               'expire'     => -1,
               'persistent' => false,
               'pool'=>['min'=>1,
                        'max'=>10,
                        'check'=>30,
                        'idle'=>30
               ],
    ]
];